package com.second.app.exception;

import com.second.app.enums.CommonCodeEnum;
import lombok.Data;

/**
 * @author gyz
 * @date 2020/12/26 15:23
 */
@Data
public class MyException extends RuntimeException {

    private Integer code;

    private String message;


    public MyException(CommonCodeEnum commonCodeEnum, String message) {
        this.code = commonCodeEnum.getCode();
        this.message = message;
    }

}
